package cn.frank.framework.caesar.module.ai.ui;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@Slf4j
public class Application {

    public static void main(String[] args) throws Exception {
        // 大家好
        final ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
        log.info("启动成功");
        String http = "http";
        String port = context.getEnvironment().getProperty("server.port");
        log.info("Application '{}' is running! Access URLs:" , http + "://127.0.0.1:" + port + "/index.html");

    }

}
